package com.jt.config;

import java.util.Scanner;

/**
 * @ClassName Test
 * @Description TODO
 * @Author Jiyao
 * @DATE 2021-11-30 18:11
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
        int[] nums = new int[3];
        System.out.println("输入数据：");
        for (int i = 0; i < nums.length; i++) {
            int a = new Scanner(System.in).nextInt();
        }
        for (int i = 0; i < nums.length; i++) {
            for (int j = nums.length-1; j >= 0; j--) {
                if (nums[i]==nums[j]){
                    System.out.println("有重复");

                }
                return;
            }
        }
    }
}

